w1,w2,w3=input().split(',')
list=[w1,w2,w3]
list.sort()
for i in list:
    print(i,end=' ') 
input('\npress Enter to continue...')